<script setup lang="ts">
import { computed } from 'vue'
import { useRoute } from 'vue-router'
const route = useRoute()

const isCache = computed(() => {
	// console.log('isCache',!route.meta.noKeepAlive)
	return !route.meta.noKeepAlive
})
</script>

<template>
	<div class="BlankLayout">
		<router-view v-slot="{ Component }" v-if="isCache">
			<KeepAlive><component :is="Component" /> </KeepAlive>
		</router-view>
		<router-view v-else></router-view>
	</div>
</template>

<style scoped></style>
